package cn.exrick.xboot.securityAdvisor.controllerImpl

import cn.exrick.xboot.base.entity.SecurityAdvisorExamContent
import cn.exrick.xboot.base.service.ISecurityAdvisorExamContentService
import cn.exrick.xboot.base.vo.SecurityAdvisorExamContentVo
import cn.exrick.xboot.core.common.vo.PageVo
import cn.exrick.xboot.core.common.vo.Result
import cn.exrick.xboot.securityAdvisor.controller.ISecurityAdvisorController
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.RestController

@RestController
open class SecurityAdvisorExamContentController: ISecurityAdvisorController.SecurityAdvisorExamContent {

    @Autowired
    private lateinit var iSecurityAdvisorExamContentService: ISecurityAdvisorExamContentService

    override fun createOrUpdateExamContent(securityAdvisorExamContent: SecurityAdvisorExamContent): Result<Any>? {

        return iSecurityAdvisorExamContentService.createOrUpdateExamContent(securityAdvisorExamContent)
    }

    override fun removeExamContent(ids: Array<out String>): Result<Any>? {

        return iSecurityAdvisorExamContentService.removeExamContent(ids)
    }

    override fun getExamContentVo(id: String): SecurityAdvisorExamContentVo? {

        return iSecurityAdvisorExamContentService.getExamContentVo(id)
    }

    override fun getExamContentList(pageVo: PageVo, trainingJobPartId: String): Result<MutableMap<String, Any?>>? {

        return iSecurityAdvisorExamContentService.getExamContentList(pageVo, trainingJobPartId)
    }
}